package com.huage.courseplatform.application.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.huage.courseplatform.application.model.dto.PeriodDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="课程课时联合显示",description="课程课时联合显示")
public class CoursePeriodVO {
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "商户ID")
    private String businessId;

    @ApiModelProperty(value = "课程负责老师ID")
    private String teacherId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "课程类型")
    private String courseType;

    @ApiModelProperty(value = "课程描述")
    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    @ApiModelProperty(value = "开课时间")
    private String startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    @ApiModelProperty(value = "结课时间")
    private String endTime;

    @ApiModelProperty(value = "课程价格")
    private BigDecimal coursePrice;

    @ApiModelProperty(value = "课程状态")
    private Integer status;

    @ApiModelProperty(value = "课程库存")
    private Integer courseInventory;

    @TableField(exist = false)
    @ApiModelProperty(value = "课时")
    private List<PeriodDTO> periodList;
}
